home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / scope / 201-220 / scopedisk211 / coldboot / coldboot.doc < prev    next >
Encoding:
Text File  |  1995-03-20  |  2.9 KB  |  55 lines

  1.                                  ColdBoot
  2.                                  --------
  3.  
  4. This program was born out of laziness:  I  use  the  ASDG  recoverable  RAM
  5. disk,  but,  since I don't have a lot of memory available, I sometimes need
  6. to boot with a "maximum memory" boot  disk,  that  doesn' t  load  ANYTHING
  7. special  into  memory.  However, the only way to recover the space from the
  8. RAM disk has been to power off the machine.  Since my power box is  on  the
  9. floor under a table, this is a real pain.
  10.  
  11. This program eliminates the need to power off the machine  to  recover  all
  12. available  RAM.   Recoverable  RAM  depends on the ExecBase structure being
  13. intact after a warm boot.  This structure gives the location of  everything
  14. else in the system, including the memory areas to recover when booting back
  15. up.  This program destroys the ExecBase structure,  leading  the  Amiga  to
  16. believe that it has just been powered up.
  17.  
  18.  
  19. ColdBoot  is  a  small  assembler  program;  the source is included in this
  20. archive (and MUST be included if you are going to redistribute this program
  21. on other boards).  It opens the Intuition library and brings up a requester
  22. asking  if you are sure you want to cold boot your machine; if you click on
  23. NO, you will be able to continue  working  as  though  you  never  ran  the
  24. program.  If you click on YES, however, all hell breaks loose:
  25.  
  26. In this case, the  program  will  disable  all  interrupts,  and  it  never
  27. re-enables  them.   (The  hell with multi-tasking, we're rebooting anyway!)
  28. It then proceeds to trash a few location in ExecBase, so the  machine  will
  29. think  it is cold booting instead of warm booting.  I believe that trashing
  30. the checksum is enough; just to be on the  safe  side,  I  also  trash  the
  31. KickMem  and  KickTag  pointers and their checksum.  These are the pointers
  32. that indicate the memory areas to recover and the modules  to  relink  into
  33. the system lists when booting up.
  34.  
  35. After doing that, the program will reset the machine.  The code  for  doing
  36. this  is taken from the Amiga Hardware Reference manual; look at the source
  37. code to see how it is done.
  38.  
  39. ---------------------------------------------------------------------------
  40.  
  41. This program is copyright (c) 1991 by Peter D. Dunlap, except for the reset
  42. code  itself,  which was provided by Commodore.  It may be redistributed as
  43. you see fit, as long as you are not making a profit from it, and as long as
  44. the  original  archive  remains  intact.   If you make changes to the code,
  45. please indicate the changes you have made in the documentation and  in  the
  46. comments to the code itself.
  47.  
  48. This code may  NOT  be  distributed  via  any  intermediary  which  assumes
  49. copyright  to  the code.  If found on any such installation, it can only be
  50. because said organization has  waived  their  copyright  seizure  for  this
  51. particular program.
  52.  
  53.  
  54.                                                              -- Pete Dunlap
  55.